<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link  href="${pageContext.servletContext.contextPath}/recursos/css/estilos.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <div class="superior">Logo</div>
        <div class="central">
            <div class="menu">
                Menu
                <br/>
                <a href="${pageContext.servletContext.contextPath}/admin/index.jsp">Zona admin</a><br/>
                <c:if test="${not empty sessionScope.usuario}">                    
                    <a href="${pageContext.servletContext.contextPath}/recursos/logout">Salir</a><br/>
                </c:if>
            </div>
            <div class="contenido">                
                <c:catch var="error">
                    <jsp:include page="${urlSolicitada}" flush="true"/>
                </c:catch>
            </div>
        </div>
        <div class="pie">Pie</div>
    </body>
</html>
